<cfoutput>
	<div class="row">
		<div class="span12">
			<div class="center" style="margin:1.5em;">
				#dspBackButton(
					text="Back To Admin",
					onClick="location='#URLFor(controller='main',action='admin')#';",
					title="Go Back to the Admin Page"
				)#
			</div>
			<form id="studentsForm" class="validateForm" style="border:0px none!important;">
				#dspAddButton(
					text="Add Student", 
					action = "#URLFor(route="updateForm", key="0", model="student", subModel="goal")#",
					title = "Add New Student"
				)#
				<table id="studentsTable" class="table table-striped">
					<thead>
						<tr class="headerRow">
							<cfloop list="First Name,Last Name,Address,City,State,Zip,E-mail,Sex" index="column">
								<th>#column#</th>
							</cfloop>
							<th></th>
						</tr>
					</thead>
					<tbody>
						<cfloop query="students">
							<tr class="bodyRow1">
								<cfloop list="first_name,last_name,address,state,city,zip" index="column">
									<td nowrap="true" valign="middle">#students[column][students.currentRow]#</td>
								</cfloop>
								<td nowrap="true" valign="middle">#students.email#</td>
								<td nowrap="true" valign="middle">#students.sex#</td>
								<td nowrap="true">
									#dspEditButton(
										action = "#URLFor(route="updateForm", key="#students.id#", model="student", subModel="goal")#",
										title = "Edit Student"
									)#
									#dspDeleteButton(
										onClick="location='#URLFor(route="deleteItem", key="#students.id#", model="student")#';",
										title="Delete Student"
									)#
								</td>
							</tr>
						</cfloop>
					</tbody>
				</table>
			</form>
		</div>
	</div>

	<!--- Dialog --->
	<div id="modal" class="modal hide fade in">
		<!--- Header --->
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">&times;</button>
			<h3></h3>
		</div>
		<!--- Body --->
		<div class="modal-body">
			<p></p>
		</div>
		<!--- Footer --->
		<div class="modal-footer">
			<a href="##" class="btn" data-dismiss="modal">Close</a>
			<a href="##" class="btn btn-primary saveButton">Save changes</a>
		</div>
	</div>
</cfoutput>